From: Javier Marcet Date: Mon, 24 Jun 2024 19:29:56 +0000 (+0200) Subject: python-docker: fix pyproject.toml issues X-Git-Url: http://git.openwrt.org/%22https:/collectd.org//%22/%22https:/collectd.org/%22?a=commitdiff_plain;h=f872c8970e994aeb7eef65804895676d48d31099;p=feed%2Fpackages.git python-docker: fix pyproject.toml issues * Getting build dependencies for wheel... ERROR Missing dependencies: hatch-vcs File "./staging_dir/hostpkg/lib/python3.11/site-packages/setuptools/config/pyprojecttoml.py", line 51, in validate raise ValueError(f"{error}\n{summary}") from None ValueError: invalid pyproject.toml config: `project.license`. configuration error: `project.license` must be valid exactly by one definition (2 matches found): - keys: 'file': {type: string} required: ['file'] - keys: 'text': {type: string} required: ['text'] Signed-off-by: Javier Marcet --- diff --git a/lang/python/python-docker/patches/pyproject.patch b/lang/python/python-docker/patches/pyproject.patch new file mode 100644 index 0000000000..4d5285b6f3 --- /dev/null +++ b/lang/python/python-docker/patches/pyproject.patch @@ -0,0 +1,18 @@ +--- a/pyproject.toml ++++ b/pyproject.toml +@@ -1,5 +1,5 @@ + [build-system] +-requires = ["hatchling", "hatch-vcs"] ++requires = [] + build-backend = "hatchling.build" + + [project] +@@ -7,7 +7,7 @@ name = "docker" + dynamic = ["version"] + description = "A Python library for the Docker Engine API." + readme = "README.md" +-license = "Apache-2.0" ++license = { text = "Apache-2.0" } + requires-python = ">=3.8" + maintainers = [ + { name = "Docker Inc.", email = "no-reply@docker.com" },